export default function commonPageRepository(pageSize, pageNum, get) {
  const pageSizeChange = (currentPageSize) => {
    pageSize = currentPageSize
    get()
  }

  const pageCurrentChange = (currentPageNum) => {
    pageNum = currentPageNum
    get()
  }

  return {
    pageSizeChange,
    pageCurrentChange
  }
}
